<!--
  Generated template for the StudentAddPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>新增学生</ion-title>
  </ion-navbar>

</ion-header>

<!-- <div class="tstep">
  <div>
    <img src="./assets/imgs/tclass1.jpg" alt="">
  </div>
  <p>
    <ion-icon name="arrow-forward"></ion-icon>
  </p>
  <div>
    <img src="./assets/imgs/tclass2.jpg" alt="">
  </div>
  <p>
    <ion-icon name="arrow-forward"></ion-icon>
  </p>
  <div style="position:relative">
    <span style="font: 16px;color: #fff;text-align: center;position: absolute;top:19px;left: 0;right: 0;bottom: 0;margin: auto;">
      {{classcourseNum}}
    </span>
    <img src="./assets/imgs/tclass3.jpg" alt="">
  </div>
</div> -->

<!-- <div style="position:relative;padding-bottom: 9px;z-index: 2;padding: 0 16px;top:55px;">
    <span style="position:absolute;right:8%;top:10px;color:#fff;font-size:16px;">123456</span>
    <img src="./assets/imgs/tclass3.jpg" alt="">
  </div> -->




<ion-content padding style="position:relative;top:1px;" padding-buttom="200px" >
  <ion-refresher (ionRefresh)="doRefresh($event)">
    <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新" refreshingSpinner="circles" refreshingText="努力刷新数据中...">
    </ion-refresher-content>
  </ion-refresher>
  <ion-list>
    <div class="taddclass" style="border: 1px solid #888;">
      <div>
        <p>序号</p>
        <p>申请人</p>
        <p>学号</p>
        <p>申请时间</p>
        <p>操作</p>
      </div>
      <div *ngFor="let a of slides" >
        <div>{{a.Id}}</div>
        <div>
          <img class="imgpize" src={{a.image_path}} alt="">
          <span style="vertical-align:middle;">{{a.Stu_Name}}</span>
        </div>
        <p>{{a.Stu_No}}</p>
        <p>{{a.apply_date.time}}</p>
        <p>
          <button small ion-button icon-start (click)="agreestudent(a.Id,a.Stu_Name,1)">
            同意
          </button>
          <button style="display:block" small ion-button icon-start color="danger" (click)="repulsestudent(a.Id,a.Stu_Name,2)">
              拒绝
          </button>
        </p>
      </div>
    </div>
  </ion-list>
  <page-paging [total]=total (pageNumChange)="doSearch($event)"></page-paging>
</ion-content>
<ion-footer>
  <page-control [classcourseId]=classcourseId [unitId]=unitId></page-control>
</ion-footer>
